package com.xuecheng.learning.feignclient;

import com.xuecheng.content.model.po.CoursePublish;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: ContentServiceClient
 * Package: com.xuecheng.learning.feignclient
 * Description: 内容管理服务远程调用接口
 *
 * @Author Endeavor-ZQB
 * @Create 2023/2/19 17:11
 * @Version 1.0
 */
@FeignClient(value = "content-api",fallbackFactory =ContentServiceClientFallbackFactory.class )
@RequestMapping("content")
public interface ContentServiceClient {

    @GetMapping("/r/coursepublish/{courseId}")
    public CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);
}
